﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace SWENAssignment.HuiYi
{
    public partial class createdUserAccDisplay : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            
                string loginID = (string)Session["loginID"];
                userAccount u = DBmanager.GetUserAccountByLoginID(loginID);

                lblLoginID2.Text = u.LoginID;
                lblUserType2.Text = u.UserType;
                lblPassword2.Text = u.Password;
                lblConfirmedPassword2.Text = u.ConfirmedPassword;
                lblLastName2.Text = u.LastName;
                lblFirstName2.Text = u.FirstName;
                lblDOB2.Text = u.DateOfBirth.ToString("yyyy/MM/dd");
                lblContNum2.Text = Convert.ToString(u.ContNum);
                lblAddress2.Text = u.MailAdd;
                lblEmail2.Text = u.Email;
                lblGender2.Text = u.Gender;
                lblBankAccType2.Text = u.BankAccType;
                lblBankAccNum2.Text = Convert.ToString(u.BankAccNum);


            

        }
    }
}